﻿<script type="text/javascript">
    $(function () {
        $('#emp').hover(
					function () { $(this).addClass('ui-state-hover'); },
					function () { $(this).removeClass('ui-state-hover'); }
				);
    });
</script>
@if (Request.IsAuthenticated)
{
    <text>Welcome <strong>@User.Identity.Name</strong>!
    <div id="emp" style="display: inline-block" class="ui-state-default ui-corner-all">
        @Html.ActionLink("employee", "DetailsFromUser", "Employee", new { id = Membership.GetUser().ProviderUserKey, area = "" }, new { @class = "ui-icon ui-icon-person" }) 
    </div>
     [ @Html.ActionLink("Log Off", "LogOff", "Account", new { area = "" }, null)
    ]    
    </text>
}
else
{
    @:[ @Html.ActionLink("Log On", "LogOn", "Account", new { area = "" }, null) ]
}
